<script>
	import app from './app'
	import { validateCurrentUser, isLogined, platform } from '@/configs/useCurrentUser'
	
	export default {
		onLaunch: async function() {
			
		},
		onShow: function() {
			validateCurrentUser().then(msg => {
				// 每次从后台到前台都会执行
				if (!isLogined) {
					uni.redirectTo({
						url: "/pages/login/index"
						// url: "/pages/login/register"
					});
				} 
			})
		},
		onHide: function() {
			console.log('App Hide')
		},
	}
</script>

<style>
	/*每个页面公共css */
	@import "colorui/main.css";
	@import "colorui/icon.css";
</style>
